Fix test-api.c (#1503)

* Add missing feature-requirement for snapshot test
 * Fix wrong multiline alignments

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
Zsolt Borbély
2017-01-03 05:39:55 +01:00
committed by Zoltan Herczeg
parent a3e9838728
commit 212f35c1f0
+2 -1
View File
@@ -865,7 +865,8 @@ main (void)
jerry_cleanup (); jerry_cleanup ();
/* Dump / execute snapshot */ /* Dump / execute snapshot */
if (jerry_is_feature_enabled (JERRY_FEATURE_SNAPSHOT_EXEC)) if (jerry_is_feature_enabled (JERRY_FEATURE_SNAPSHOT_SAVE)
&& jerry_is_feature_enabled (JERRY_FEATURE_SNAPSHOT_EXEC))
{ {
static uint8_t global_mode_snapshot_buffer[1024]; static uint8_t global_mode_snapshot_buffer[1024];
static uint8_t eval_mode_snapshot_buffer[1024]; static uint8_t eval_mode_snapshot_buffer[1024];