From 10ef575d467db1f12406eee944212fde6c250089 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 29 Dec 2013 20:53:39 +0200 Subject: Fix build on Windows --- tests/alltypes_pointer/SConscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/alltypes_pointer/SConscript b/tests/alltypes_pointer/SConscript index 11a287a8..b577ca24 100644 --- a/tests/alltypes_pointer/SConscript +++ b/tests/alltypes_pointer/SConscript @@ -9,13 +9,15 @@ env.Command("alltypes.proto", "#alltypes/alltypes.proto", c) env.NanopbProto(["alltypes", "alltypes.options"]) enc = env.Program(["encode_alltypes_pointer.c", "alltypes.pb.c", "$COMMON/pb_encode.o"]) +refdec = "$BUILD/alltypes/decode_alltypes$PROGSUFFIX" + # Encode and compare results env.RunTest(enc) -env.RunTest("decode_alltypes.output", ["$BUILD/alltypes/decode_alltypes", "encode_alltypes_pointer.output"]) +env.RunTest("decode_alltypes.output", [refdec, "encode_alltypes_pointer.output"]) env.Compare(["encode_alltypes_pointer.output", "$BUILD/alltypes/encode_alltypes.output"]) # Do the same thing with the optional fields present env.RunTest("optionals.output", enc, ARGS = ['1']) -env.RunTest("optionals.decout", ["$BUILD/alltypes/decode_alltypes", "optionals.output"], ARGS = ['1']) +env.RunTest("optionals.decout", [refdec, "optionals.output"], ARGS = ['1']) env.Compare(["optionals.output", "$BUILD/alltypes/optionals.output"]) -- cgit 1.2.3-korg