X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fstress_tester%2Fshared.c;fp=direct%2Ftest-framework%2Ftimothy_tests%2Fstress_tester%2Fshared.c;h=75855d4ba6dc25b18d0182e4929d4a5c441e2b73;hp=0000000000000000000000000000000000000000;hb=cf14d8b71ffe8d524439e7310a165389bc015dfa;hpb=618878c65069562a2a5208b4cfe50591bba49e8d diff --git a/direct/test-framework/timothy_tests/stress_tester/shared.c b/direct/test-framework/timothy_tests/stress_tester/shared.c new file mode 100644 index 0000000..75855d4 --- /dev/null +++ b/direct/test-framework/timothy_tests/stress_tester/shared.c @@ -0,0 +1,22 @@ +/* + * YAFFS: Yet another FFS. A NAND-flash specific file system. + * + * Copyright (C) 2002-2018 Aleph One Ltd. + * + * Created by Timothy Manning + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/* + * error_handler.c contains code for checking yaffs function calls for errors. + */ +#include "shared.h" +#include "yaffsfs.h" + +void quit_program(){ + yaffs_unmount(YAFFS_MOUNT_DIR); + exit(1); +}