Commit Graph

2501 Commits

Author SHA1 Message Date
Jacob Richman bf2b545150 Revert "Update all tests"
This reverts commit ce76e9c30beaf9a193d3677b88c20a1ebb3fae8c.
2017-03-21 16:33:18 -07:00
Jacob Richman 3c7353d987 Update all tests
Support //# multitests for better dartfmt compatibility and fewer multitest false positives

All files under tests were manually updated with

find . -iregex '.*\.dart$' -print0 | xargs -0 perl -pi -e 's/(\S\s+)\/\/\/ /$1\/\/# /'

For now both old and new styles are allowed to accommodate CO19 tests.

R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2765693002 .
2017-03-21 12:39:28 -07:00
William Hesse 5f07071c09 Fix error in status file test name
BUG=https://github.com/dart-lang/sdk/pull/29007
R=zra@google.com

Review-Url: https://codereview.chromium.org/2766753002 .
2017-03-21 16:58:16 +01:00
Jacob Richman 6a7d6c385e Add comments
Add spaces to make sure dartfmt doesn't destroy bespoke indentation

BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2763823002 .
2017-03-20 21:03:12 -07:00
Zach Anderson b3093ecee6 [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes
On Windows, some Windows 10 builds support only ANSI output, but not
input, so these need to be separated.

I'm also improving the detection on Mac and Linux to avoid hardcoding
the result. Instead, supportsAnsiEscapes will be true if isatty() and
the TERM environment variable contains the string 'xterm'.

related #28614

R=lrn@google.com

Review-Url: https://codereview.chromium.org/2753233002 .
2017-03-17 12:35:36 -07:00
Siva Annamalai 1133a4dc2c Fix for issue 28854.
BUG=#28854
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2750193002 .
2017-03-16 16:53:18 -07:00
Zach Anderson a8bf498e56 [dart:io] Adds Platform.ansiSupported
This is so that flutter_tool can determine whether it can print
ANSI codes to the terminal on windows.

fixes #28614,#28984

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2739683005 .
2017-03-15 08:51:50 -07:00
Natalie Weizenbaum 0b3bea588f Mark an IO test as flaky on simmips. (#29013)
See #29012
2017-03-10 13:36:33 -08:00
Natalie Weizenbaum 366e8b60a8 Mark io/standalone/named_pipe_script_test flaky. (#29007)
See #28737
2017-03-09 13:19:01 -08:00
Asger Feldthaus 3a7529a363 Remove status file sections for the CPS IR.
BUG=
R=kmillikin@google.com

Committed: https://github.com/dart-lang/sdk/commit/2d6c90a6b3d6d1be5095e12a0a633305e1d5db2a
Review-Url: https://codereview.chromium.org/2720513006 .
2017-02-28 17:11:19 +01:00
Asger Feldthaus e7b9672b3e Revert "Remove status file sections for the CPS IR."
This reverts commit 2d6c90a6b3.

BUG=

Review-Url: https://codereview.chromium.org/2720283002 .
2017-02-28 17:08:04 +01:00
Asger Feldthaus 2d6c90a6b3 Remove status file sections for the CPS IR.
BUG=
R=kmillikin@google.com

Review-Url: https://codereview.chromium.org/2720513006 .
2017-02-28 14:40:06 +01:00
Vyacheslav Egorov 1c7cb7c5e9 VM: remove service_object_patch.dart and all associated code.
This deletion has several reasons:

- This code is broken and refers to non-existant private parts of dart:io
(e.g. `_NativeSocket._sockets`, `_ProcessImpl._processes`, `_RandomAccessFile._files`).

- This code is not reachable through the service protocol. `_serviceObjectHandler` uses
`paths` to fetch the right handler from `_servicePathMap` but caller `ServiceGetIOHandler`
always passes empty paths.

- The only test that was attempting to test some of this code through mirrors (sic!)
has been disabled since January 2015.

After deletion all tests continue to pass meaning that nobody really relies on this
broken code in any way.

BUG=https://github.com/dart-lang/sdk/issues/28882
R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2715253002 .
2017-02-27 16:08:16 +01:00
Ben Konyi 2b81624bb2 Revert "Revert "[test.dart] Complain if there is non-utf8 formatted data in test output""
This reverts commit 7af8f320a7.

TBR=zra@google.com
BUG=

Review-Url: https://codereview.chromium.org/2710603009 .
2017-02-23 17:08:15 -08:00
Ben Konyi 7af8f320a7 Revert "[test.dart] Complain if there is non-utf8 formatted data in test output"
This reverts commit c294dec5e6.

TBR=zra@google.com
BUG=

Review-Url: https://codereview.chromium.org/2705213006 .
2017-02-23 16:57:31 -08:00
Zachary Anderson 3dc6a628b8 Fix standalone status file
Review-Url: https://codereview.chromium.org/2716753002 .
2017-02-23 15:23:11 -08:00
Zach Anderson c294dec5e6 [test.dart] Complain if there is non-utf8 formatted data in test output
related #28872

R=ahe@google.com

Review-Url: https://codereview.chromium.org/2710003005 .
2017-02-23 14:15:26 -08:00
John McCutchan 88b68b30b4 Don't inline functions that the parser decides shouldn't be inlined.
Fixes #28857
Fixes #28759

BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2713593004 .
2017-02-23 12:32:44 -08:00
Peter von der Ahé bf12208dba Skip standalone/io/console_unicode_test on Android.
R=kmillikin@google.com

Review-Url: https://codereview.chromium.org/2711913002 .
2017-02-23 11:57:50 +01:00
Zach Anderson 30da80fb17 [dart:io][windows] Set up CRT error handling behavior
fixes #28852

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2710103002 .
2017-02-22 13:55:07 -08:00
Dmitry Olshansky 54b56606d5 Fix analyser warnings
TBR=kustermann@google.com

Review-Url: https://codereview.chromium.org/2709213002 .
2017-02-22 15:13:54 +01:00
Dmitry Olshansky 38c487b4df Adjust test to run on no-IPv6 machines, update status file
Currently crashes in precompiled debug mode.

R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2709013004 .
2017-02-22 14:41:17 +01:00
Zach Anderson bc07953866 [dart:io][windows] Make unicode characters display correctly.
This change has two pieces.
- Set the console code page to UTF8.
  - This makes strings printed with print() display correctly
- Set the file translation mode to _O_WTEXT when writing to a
  stdout or stderr that is connected to a console.
  - This makes strings printed with e.g. stdout.writeln()
    display correctly.

fixes #28571

R=asiva@google.com, fschneider@google.com

Review-Url: https://codereview.chromium.org/2698813002 .
2017-02-21 22:47:03 -08:00
Karl Klose 958e9c005c [Gardening] Mark two more standalone tests as flaky on dart2analyzer
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2706973003 .
2017-02-21 13:22:44 +01:00
Karl Klose 1f85264164 [Gardening] Mark two standalone/io/http tests as flaky on dart2analyzer
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2711433002 .
2017-02-21 11:20:00 +01:00
Martin Kustermann dbada40658 Skip test on windows which cannot run with precompiler
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2697253003 .
2017-02-16 11:14:30 +01:00
Martin Kustermann f4c08577cc Modify standalone/io/process_test_util to make 2 io tests work on precomp-windows
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2699533007 .
2017-02-16 10:41:58 +01:00
Florian Schneider be6dd077b0 Mark process_stdin_transform_unsubscribe_test as Pass, Timeout
Complete stack trace has been collected, suppressing until fixed.

Related to  #28558.

TBR=zra@google.com,

Review-Url: https://codereview.chromium.org/2690993004 .
2017-02-14 11:14:35 +01:00
Ryan Macnak cfe5e5f075 Include metadata in AOT to expand inline frames in stack traces and provide line numbers.
Also fix stack trace collection to always include invisible frames. It can happen that a visible function is inlined into an invisible function, and we don't expand inlined frames until we print a stack trace.

dart2js product x64:
compile time: 12.459s
VMIsolate(CodeSize): 152292
Isolate(CodeSize): 3343117
ReadOnlyData(CodeSize): 3728928
Instructions(CodeSize): 8677600
Total(CodeSize): 15901937
->
compile time: 14.195s (+13%)
VMIsolate(CodeSize): 174034
Isolate(CodeSize): 3892418 (+16%)
ReadOnlyData(CodeSize): 5036320 (+35%)
Instructions(CodeSize): 8682624
Total(CodeSize): 17785396 (+12%)

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2687143005 .
2017-02-13 10:27:36 -08:00
Zachary Anderson 0111122ca0 [Fuchsia] Update test status files
R=asiva@google.com, rmacnak@google.com

Review-Url: https://codereview.chromium.org/2693643002 .
2017-02-10 21:34:33 -08:00
Florian Schneider 6a36c0f36e Add call to flush() to avoid flakiness
Related to #28558.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2688243003 .
2017-02-10 14:25:58 -08:00
Ben Konyi 39f80e42e0 Corrected spelling mistake from "happend" to "happen" throughout multiple files.
BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2688943002 .
2017-02-10 12:52:42 -08:00
John McCutchan a34a3d7854 Update the status file w.r.t. dart_developer_env_test
Fixes #28718

BUG=

Review-Url: https://codereview.chromium.org/2691633002 .
2017-02-10 12:19:52 -08:00
Zach Anderson 8a9a98073f [dart:io] flush() stdin before close()ing
Calls to close() on an IOSink do not imply that writes buffered by the
underlying StreamConsumer have been flushed. This CL adds a note
indicating this to the IOSink docs, and adds calls to flush() before
calls to close() for some calls to stdin.close() for spawned
processes in our tests.

related #28737

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2687963003 .
2017-02-10 09:55:16 -08:00
Florian Schneider 5b8d96989f Fix socket_source_address_test
Fixes #28266.

R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2682943009 .
2017-02-10 09:11:40 -08:00
Natalie Weizenbaum f8929b9613 [Gardening] Mark a test as flaky on SIMDBC. (#28720)
standalone/io/secure_unauthorized_test flakily failed.

See #28719
2017-02-09 17:30:51 -08:00
Siva Annamalai 61f6dac118 Create Issue 28718 to account for test failures in dartium and dart2js
- dart_developer_disabled_env_test
 - dart_developer_env_test

BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2688813002 .
2017-02-09 17:27:42 -08:00
John McCutchan 2c52f8423d Fix missing top frame in exception stacks in product mode
BUG=

Review-Url: https://codereview.chromium.org/2688783002 .
2017-02-09 16:11:22 -08:00
John McCutchan a0ee5b24db Track async causal stack traces
This CL improves the stack traces that accompany exceptions. Whenever an
async function is entered, we remember how we got there. This is similar
in spirit to package:stack_trace but the implementation is more efficient
and memory usage can be more easily reasoned about.

Tracking causal stack traces:

- [x] Upon entry to an async function, capture the synchronous stack trace prefix and store it into the closure.
- [x] Upon entry to an async* function, capture the synchronous stack trace prefix and store it into the closure.
- [x] Before returning from an async function, clear the Thread's asynchronous stack trace.
- [x] After resuming an async function, load the sychronous stack trace prefix into the Thread.
- [x] Filter stack traces to remove async machinery.

Service protocol changes:

- [x] Send causal async stack trace.

Observatory changes:

- [x] Display causal async stack trace below async functions.

Fixes https://github.com/dart-lang/sdk/issues/27661

R=asiva@google.com, rmacnak@google.com

Comparisons: https://docs.google.com/a/google.com/document/d/10r6jEqr8OCiDZ4y9SYU_uOimcHiOGAZMly2ghTErALI/edit?usp=sharing
Review-Url: https://codereview.chromium.org/2646443005 .
2017-02-09 15:39:44 -08:00
Florian Schneider 20e736e6ca test.dart: Dump stack traces for child processes on timeout.
This should help flaky timeout debugging for tests that spawn child processes.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2682373004 .
2017-02-09 15:34:24 -08:00
Natalie Weizenbaum c0bc9564be [Gardening] Mark a test as flaky. (#28708)
standalone/io/process_stdin_transform_unsubscribe_test was flakily
timing out on Windows.

See #28707
2017-02-09 13:20:30 -08:00
Zachary Anderson 3f5458cdcb [dart:io] Adds functions to set file access and modification time
fixes #27877

R=asiva@google.com, floitsch@google.com

Review-Url: https://codereview.chromium.org/2681683005 .
2017-02-09 09:45:25 -08:00
Erik Ernst 9e7a0c1288 Gardening: Added status Crash, Pass for empty_packages_file_option_test.
That test has crashed almost every time in 40 builds (2581--2620) on
analyzer-win7-release-be, and standalone.status has been updated
accordingly.

The change has been communicated via a comment on sdk issue #28645.

Review-Url: https://codereview.chromium.org/2680023002 .
2017-02-07 16:58:40 +01:00
Erik Ernst 29b1dbe56f Gardening: Adjusted status of packages_option_only_test.
In 13 out of 20 builds ending in 2620 on analyzer-win7-release-be this
test has outcome CompileTimeError rather than Crash. This CL adds that
outcome to the status file, for windows platforms.

Review-Url: https://codereview.chromium.org/2687433003 .
2017-02-07 16:32:40 +01:00
Brian Wilkerson 763693c4ee [Gardening] Fix status of failing tests on the analyzer windows bot
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2676333003 .
2017-02-06 13:30:07 -08:00
Brian Wilkerson 2ee2fe9b5c [Gardening] Disable running strong-mode analyzer tests in code that is not strong mode clean
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2679553003 .
2017-02-06 13:26:39 -08:00
Florian Loitsch ffbe3e561a Remove slow marker for flaky test.
Review-Url: https://codereview.chromium.org/2675283002 .
2017-02-06 14:38:12 +01:00
Jonas Termansen a8b5498333 Fix peer addresses being reported raw rather than the actual address byte.
The struct sockaddr containing the remote address was being reported
rather than the actual sin_addr / sin6_addr fields. Use the ToTypedData
utility function to return the real address bytes as a dart list. Before
this fix all remote addresses would be reported (on Linux) as 2.0.x.y where
2.0 means IPv4 and x.y are the remote port in big endian, i.e. the first
four bytes of struct sockaddr.

R=rmacnak@google.com
BUG=

Review-Url: https://codereview.chromium.org/2665973003 .
2017-02-06 13:48:53 +01:00
Lasse Reichstein Holst Nielsen c41ae15713 Specify FutureOr.
R=eernst@google.com, floitsch@google.com

Review-Url: https://codereview.chromium.org/2664263002 .
2017-02-03 08:02:09 +01:00
Dmitry Olshansky 233199a509 Fix a typo in the status file
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2665663002 .
2017-01-30 13:50:43 +01:00