hide junk test code if not -DJUNKTEST
diff --git a/skeletons/converter-example.c b/skeletons/converter-example.c
index ec1cc10..8262417 100644
--- a/skeletons/converter-example.c
+++ b/skeletons/converter-example.c
@@ -85,6 +85,7 @@
#else /* !JUNKTEST */
#define JUNKOPT
+#define RANDOPT
#endif /* JUNKTEST */
/* Debug output function */
@@ -432,6 +433,7 @@
/*
* Decode the encoded structure from file.
*/
+#ifdef JUNKTEST
if(isyntax == ATS_RANDOM) {
structure = NULL;
if(asn_random_fill(pduType, &structure, random_max_size) != 0) {
@@ -442,9 +444,12 @@
errno = EINVAL;
}
} else {
+#endif
structure = data_decode_from_file(isyntax, pduType, file, name,
suggested_bufsize, first_pdu);
+#ifdef JUNKTEST
}
+#endif
if(!structure) {
if(errno) {
/* Error message is already printed */