Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common Add the typical #ifdef USE_ATF stuff so I ca...
details: https://anonhg.NetBSD.org/src/rev/a094bed395b3
branches: trunk
changeset: 754019:a094bed395b3
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Apr 16 14:05:32 2010 +0000
description:
Add the typical #ifdef USE_ATF stuff so I can debug the test if it
goes wrong.
diffstat:
tests/fs/common/snapshot.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (50 lines):
diff -r b410dea34644 -r a094bed395b3 tests/fs/common/snapshot.c
--- a/tests/fs/common/snapshot.c Fri Apr 16 13:56:45 2010 +0000
+++ b/tests/fs/common/snapshot.c Fri Apr 16 14:05:32 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snapshot.c,v 1.1 2010/04/13 10:19:25 pooka Exp $ */
+/* $NetBSD: snapshot.c,v 1.2 2010/04/16 14:05:32 pooka Exp $ */
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -13,12 +13,15 @@
#include <string.h>
#include <unistd.h>
+#define USE_ATF
+#ifdef USE_ATF
ATF_TC_WITH_CLEANUP(snapshot);
ATF_TC_HEAD(snapshot, tc)
{
atf_tc_set_md_var(tc, "descr", "basic snapshot features");
}
+#endif
static void
makefile(const char *path)
@@ -31,7 +34,11 @@
rump_sys_close(fd);
}
+#ifdef USE_ATF
ATF_TC_BODY(snapshot, tc)
+#else
+int main(int argc, char *argv[])
+#endif
{
char buf[1024];
struct fss_set fss;
@@ -108,6 +115,7 @@
/* done for now */
}
+#ifdef USE_ATF
ATF_TC_CLEANUP(snapshot, tc)
{
@@ -119,3 +127,4 @@
ATF_TP_ADD_TC(tp, snapshot);
return 0;
}
+#endif
Home |
Main Index |
Thread Index |
Old Index