From fd5ff678b7bf9d87d875ef4369fdc2969bfff30e Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 10 Apr 2016 22:43:21 +0300 Subject: [PATCH] [PATCH 1/3] test: test one character long directory names at top level --- 16/40cf0c29d70638d45fcdf28ddfe5841c87ff2e | 105 ++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 16/40cf0c29d70638d45fcdf28ddfe5841c87ff2e diff --git a/16/40cf0c29d70638d45fcdf28ddfe5841c87ff2e b/16/40cf0c29d70638d45fcdf28ddfe5841c87ff2e new file mode 100644 index 000000000..777078370 --- /dev/null +++ b/16/40cf0c29d70638d45fcdf28ddfe5841c87ff2e @@ -0,0 +1,105 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id B3AB96DE02D1 + for ; Sun, 10 Apr 2016 12:44:47 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.558 +X-Spam-Level: +X-Spam-Status: No, score=-0.558 tagged_above=-999 required=5 tests=[AWL=0.162, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id iJKKwuCIRxfO for ; + Sun, 10 Apr 2016 12:44:39 -0700 (PDT) +Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com + [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 77A1D6DE0008 for + ; Sun, 10 Apr 2016 12:44:39 -0700 (PDT) +Received: by mail-wm0-f65.google.com with SMTP id n3so16822364wmn.1 + for ; Sun, 10 Apr 2016 12:44:39 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=nikula-org.20150623.gappssmtp.com; s=20150623; + h=from:to:cc:subject:date:message-id; + bh=wtipiigXMrAR3BfFVWkwSIFP/lBSSLRTPfTurYrumxU=; + b=EZRaJ/YUNJvhNg5jJ1sldQ5Of6LsPWd+NKubQJfkntK/2PGpWsGnk/GC07oiVfx7gv + Pvp/xv6s3OUUsbaxqn+QAdWinNJ2AXmaVTs8y/76OyUSnmoHe3JnxUn4r2JwDUWQ3H4Q + AuDNWNweoiRQn4tAIHZrS3wch6f/LkaMHmarpJrgWkdVq76UJLSHy/Smsj+iAzyZXzm1 + X5kFbfocauYU1cYosnosEgtyz9txra+wwZwTEIxFKW06xzP9ENpoSisiywW1Iw8E+ZL5 + BRvr0ILkWDON4Q2wCpGB5wiwc/x9EyFH1PlY8YA0njBeFmstk0dbqVMXoMZ+didfqfjq + ohzw== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=wtipiigXMrAR3BfFVWkwSIFP/lBSSLRTPfTurYrumxU=; + b=JADVJujkRiloGPSNCmlJfye604h/uYtBx0GZzldXa6RGk5ul9q1wH78anb3Bf3Ntub + yqTyz5q36jmWWBVto0LuzIgcy1Qw/BraS1g1vWdTPuxLzlbx4Y10e0cQfM03qrbdLtxM + 1dYRCwPM8oopPtGHcL1CFZSaiSlc1gduzKhx8K1atNkyuSSCq5gsNAQlK8xYkcZg3L22 + T1QUH4gXVRLJ9lstqxRkNjosl5W40F8hPcAKaK0/xfsBAZYnpCCkA8bHqSvt2HSg3Lvq + k/awWkQD2MO3GFqc3yArgAoOUAbZQC2JVu6D9YGopt5GQmRc/axIv3RiSUvXZS/5MkJP + 8uQw== +X-Gm-Message-State: + AD7BkJITdYkBPRJcbNvjnu8qObTmf9t+3h1298K944ojBuySbCc4fNT1lv2VKoezffkAjg== +X-Received: by 10.194.187.145 with SMTP id + fs17mr19835053wjc.179.1460317477298; Sun, 10 Apr 2016 12:44:37 -0700 (PDT) +Received: from localhost (mobile-access-bcee7f-102.dhcp.inet.fi. + [188.238.127.102]) + by smtp.gmail.com with ESMTPSA id u4sm24177252wjz.4.2016.04.10.12.44.36 + (version=TLSv1/SSLv3 cipher=OTHER); + Sun, 10 Apr 2016 12:44:36 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 1/3] test: test one character long directory names at top + level +Date: Sun, 10 Apr 2016 22:43:21 +0300 +Message-Id: <1460317403-13714-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 2.1.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 10 Apr 2016 19:44:47 -0000 + +Yes, it's broken. Reported by h01ger on IRC. +--- + test/T050-new.sh | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/test/T050-new.sh b/test/T050-new.sh +index 93a6fa94ae7c..174715aa2781 100755 +--- a/test/T050-new.sh ++++ b/test/T050-new.sh +@@ -169,6 +169,20 @@ output=$(NOTMUCH_NEW --debug) + test_expect_equal "$output" "(D) add_files, pass 3: queuing leftover directory ${MAIL_DIR}/two for deletion from database + No new mail. Removed 3 messages." + ++test_begin_subtest "One character directory at top level" ++test_subtest_known_broken ++ ++generate_message [dir]=A ++generate_message [dir]=A/B ++generate_message [dir]=A/B/C ++ ++output=$(NOTMUCH_NEW --debug) ++test_expect_equal "$output" "Added 3 new messages to the database." ++ ++# clean up after the broken test to not mess up other tests ++rm -rf "${MAIL_DIR}"/A ++NOTMUCH_NEW 2>&1 > /dev/null ++ + test_begin_subtest "Support single-message mbox" + cat > "${MAIL_DIR}"/mbox_file1 <