• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Simulate io errors when encoding and decoding
2
3Import("env")
4
5c = Copy("$TARGET", "$SOURCE")
6env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
7
8env.NanopbProto(["alltypes", "alltypes.options"])
9
10ioerr = env.Program(["io_errors.c", "alltypes.pb.c",
11                     "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
12
13env.RunTest("io_errors.output", [ioerr, "$BUILD/alltypes/encode_alltypes.output"])
14
15
16