X-Git-Url: https://yaffs.net/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Fstress_tests%2Fstress_tester%2Fshared.c;fp=direct%2Ftest-framework%2Fstress_tests%2Fstress_tester%2Fshared.c;h=75855d4ba6dc25b18d0182e4929d4a5c441e2b73;hp=0000000000000000000000000000000000000000;hb=e12e51da5815d80399ec8f5b0da69c7cd7a0f42e;hpb=ebc54da9e29be1de79d77c72c0d8eb91833c641b diff --git a/direct/test-framework/stress_tests/stress_tester/shared.c b/direct/test-framework/stress_tests/stress_tester/shared.c new file mode 100644 index 0000000..75855d4 --- /dev/null +++ b/direct/test-framework/stress_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); +}