Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix failing tests when enable_debug is not activated.
[simgrid.git] / teshsuite / xbt / log_usage / log_usage_ndebug.tesh
diff --git a/teshsuite/xbt/log_usage/log_usage_ndebug.tesh b/teshsuite/xbt/log_usage/log_usage_ndebug.tesh
new file mode 100644 (file)
index 0000000..40485cc
--- /dev/null
@@ -0,0 +1,17 @@
+#! ./tesh
+
+$ $SG_TEST_EXENV ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n"
+> [  0.000000] [0:@] Test with the settings ''
+> [  0.000000] [0:@] val=2
+> [  0.000000] [0:@] false alarm!
+> [  0.000000] [0:@] Test with the settings ' '
+> [  0.000000] [0:@] val=2
+> [  0.000000] [0:@] false alarm!
+> [  0.000000] [0:@] Test with the settings ' test.thres:info root.thres:info  '
+> [  0.000000] [0:@] val=2
+> [  0.000000] [0:@] false alarm!
+> [  0.000000] [0:@] Test with the settings ' test.thres:verbose root.thres:error '
+> [  0.000000] [0:@] val=2
+> [  0.000000] [0:@] false alarm!
+> [  0.000000] [0:@] Test with the settings ' test.thres:critical '
+> [  0.000000] [0:@] false alarm!