2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
8 # This test is specific to the x86-32 sandbox, and is not portable.
9 if not env.Bit('build_x86_32') or not env.AllowInlineAssembly():
12 test_prog = env.ComponentProgram(
13 'gs_segment_read_only_test', ['gs_segment_test.c'],
14 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}'])
16 for subtest in ('gs_segment_read_only_test',
17 'gs_segment_read_only_test_thread',
18 'gs_segment_size_test',
19 'gs_segment_size_test_thread'):
20 node = env.CommandSelLdrTestNacl('%s.out' % subtest,
21 test_prog, [subtest], declares_exit_status=True,
22 # R-DFA rejects unaligned access to %gs at validation stage
23 sel_ldr_flags=(['-c'] if env.Bit('validator_ragel') else None))
24 env.AddNodeToTestSuite(node, ['small_tests', 'nonpexe_tests'],